﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using TianShu.SysParameterSetting.DAL.Abstracts;
using Volo.Abp.Domain;
using Volo.Abp.EventBus;
using Volo.Abp.Modularity;
using Volo.Abp.SqlSugarCore.Services;
using Volo.Abp.SqlSugarCore.SqlSugarFactory;
using Volo.Abp.Caching;

namespace TianShu.SysParameterSetting.DAL
{
    [DependsOn(
        typeof(TianShuSysParameterSettingDALAbStractsModule),
        typeof(TianShuDomainModule),
        typeof(AbpCachingModule)
        )]
    public class TianShuSysParameterSettingDALModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.RegisterTransient<IDalService>(this.GetType().Assembly);

            //初始化分表
            //context.Services.GetServiceLazy<ISqlSugarClientFactory>().Value.CreateClient().CodeFirst.SplitTables().InitTables<BattchNumberRuleRecord>();
        }
    }
}
